package com.banmao.mall.mapper;

import com.banmao.mall.model.bo.admin.statistic.OrderTotalAndAmountByDay;
import com.banmao.mall.model.bo.admin.statistic.OrderTotalCustomersNumOfDay;
import com.banmao.mall.model.bo.admin.market.OrderListBO;
import com.banmao.mall.model.pojo.Order;
import com.banmao.mall.model.vo.client.login.UserOrderStatusVO;
import com.banmao.mall.model.vo.client.order.nopayment.DataBean;
import com.banmao.mall.model.vo.client.order.nopayment.GoodsListBean;

import java.util.List;

import java.util.List;

import java.util.Date;
import java.util.List;

public interface OrderMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Order record);

    int insertSelective(Order record);

    Order selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Order record);

    int updateByPrimaryKey(Order record);

    Integer selectTotalCount();
    List<OrderTotalAndAmountByDay> orderTotalAndAmountByDay();

    Integer orderTotalCustomersNumOfDay(String date);

    //List<UserOrderStatusVO> selectStatsByUerID(Integer userId);
    List<Integer> selectStatsByUerID(Integer userId);

    List<Order> selectOrderByPost(OrderListBO orderListBO);

    Integer selectCount(Integer userId, Integer orderStatus);

    List<DataBean> selectDataBeanList(Integer userId, Integer orderStatus);

    List<GoodsListBean> selectGoodsList(Integer orderId);
}